<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2016/1/14
 * Time: 11:06
 */

class Involved_LabelModel extends BaseModel{

    protected $table = 'label';

    /**
     * 获取标签
     * @return mixed
     * @author alice
     * @date 2016-1-25
     */
    public function ShowLabelList()
    {
        return DB::table($this->table)->paginate(10);
    }

    /**
     * 获取标签详情
     * @param $id
     * @return mixed
     * @author alice
     * @date 2016-1-25
     */
    public function GetLabelInfo($id)
    {
        return DB::table($this->table)
            ->where('label_id',$id)
            ->first();
    }

}